<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="./public/favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>懂体育NBA直播_足球直播_篮球直播_英超直播_欧洲杯高清体育赛事</title>
    <meta name="keywords" content="懂体育,NBA直播,足球直播,篮球直播,欧洲杯直播" />
    <meta
      name="description"
      content="懂体育直播是一个专业为球迷提供免费直播的平台,懂体育直播体育包括NBA,英超,西甲,德甲,意甲,法甲,中超,欧冠,欧洲杯等各大足球高清赛事,全天24小时赛事不间断,与美女主播一起零距离互动,看体育赛事尽在懂体育直播。"
    />
  </head>
  <body>
    <div id="app"></div>
    <script>
      function isMobile() {
        var userAgent = navigator.userAgent.toLowerCase()
        var mobileRegex =
          /android|iphone|ipad|ipod|windows phone|mobile|ucbrowser|qqbrowser|mqqbrowser|baidubrowser|micromessenger|weibo|sailfish/i
        var safariRegex = /safari/i
        var mobileSafariRegex = /iphone|ipad|ipod/i

        // 检查是否匹配移动设备正则表达式
        var isMobileDevice = mobileRegex.test(userAgent)

        // 额外检查是否是移动版Safari（iOS设备）
        var isIOSSafari = safariRegex.test(userAgent) && mobileSafariRegex.test(userAgent)

        return isMobileDevice || isIOSSafari
      }

      if (isMobile()) {
        try {
          console.log('isMobile')
          localStorage.setItem('deviceChecked', 'mobile')
          var currentHost = window.location.hostname
          var newHost = currentHost.replace(/^www\./, 'm.')
          if (newHost === currentHost) {
            newHost = 'm.' + currentHost
          }
          console.log(newHost)
          window.location.href =
            window.location.protocol +
            '//' +
            newHost +
            window.location.pathname +
            window.location.search
        } catch (error) {
          console.log(error)
        }
      } else {
        localStorage.setItem('deviceChecked', 'desktop')
      }
    </script>
    <script>
      !(function (p) {
        'use strict'
        !(function (t) {
          var s = window,
            e = document,
            i = p,
            c = ''.concat(
              'https:' === e.location.protocol ? 'https://' : 'http://',
              'sdk.51.la/js-sdk-pro.min.js'
            ),
            n = e.createElement('script'),
            r = e.getElementsByTagName('script')[0]
          ;(n.type = 'text/javascript'),
            n.setAttribute('charset', 'UTF-8'),
            (n.async = !0),
            (n.src = c),
            (n.id = 'LA_COLLECT'),
            (i.d = n)
          var o = function () {
            s.LA.ids.push(i)
          }
          s.LA ? s.LA.ids && o() : ((s.LA = p), (s.LA.ids = []), o()),
            r.parentNode.insertBefore(n, r)
        })()
      })({ id: '3JkCUjIOlajQkats', ck: '3JkCUjIOlajQkats' })
    </script>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>
